/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 列表
export const queryListForDealer = params => axios.post(`${SERVER.RETAIL}/salesReturn/queryListForDealer`, params);
// 详情
export const queryReturnById = params => axios.get(`${SERVER.RETAIL}/salesReturn/queryReturnById`, {
  params
});

// 查询vin
export const queryReportInfo = params => axios.post(`${SERVER.RETAIL}/salesReturn/queryReportInfo`, params);
// 导出
export const exportList = params => axios.post(`${SERVER.RETAIL}/salesReturn/exportForDealer`, params, {
  responseType: 'blob'
});

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
